X_INCDIRS	+= FileSystem/
X_LIBS 		+= libxlibc.a

X_CFLAGS	+= -w

NAME		:= FileSystem.xapp

# SRC	+= *.c
# SRC	+= cpio/
SRC	+= devfs/
SRC	+= fat/
# SRC += vfs_client.c
# SRC += vfs_server.c
SRC += fs.c fs_server.c
SRC += div.c
SRC += main.c

define CUSTOM_TARGET_CMD
echo [APP] $@; \
$(LD) $(X_LDFLAGS) $(X_OBJS) -o $@ $(patsubst %, -L%, $(X_LIBDIRS)) \
	--start-group $(patsubst %, -l:%, $(X_LIBS)) --end-group
endef
